package Dynamic;

public class Main {
    public static void main(String[] args) {
        ITeacherDao iteacherDao = new TeacherDao();

        ITeacherDao proxyInstance = (ITeacherDao) new FactoryProxy(iteacherDao).getProxyIstance();

        proxyInstance.teacher();
        proxyInstance.sayhello();

    }
}